package com.haihui.platform.service.impl.roles;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.haihui.platform.dao.roles.RoleDao;
import com.haihui.platform.entity.Role;
import com.haihui.platform.service.roles.RoleService;

@Service
public class RoleServiceImpl implements RoleService{

	@Autowired
	private RoleDao roleDao;
	
	//角色列表
	@Override
	public List<Map<String, Object>> list(Role role) {
		return roleDao.list(role);
	}

	@Override
	public Integer add(Role role) {
		return roleDao.add(role);
	}

	@Override
	public Integer update(Role role) {
		return roleDao.update(role);
	}

	@Override
	public Map<String, Object> detail(Role role) {
		return roleDao.detail(role);
	}

	@Override
	public Integer delete(Role role) {
		return roleDao.delete(role);
	}

	@Override
	public Integer count(Role role) {
		return roleDao.count(role);
	}

	@Override
	public Integer batchInsert(List<Map<String, Object>> list) {
		return roleDao.batchInsert(list);
	}

	@Override
	public Integer delResRole(String roleId) {
		return roleDao.delResRole(roleId);
	}

}
